package com.example.helloworld;

public class ExceptTest {
    public static void main(String[] args) {
        try {
            int a[] = new int[5];
            System.out.println("Access enter six: " + a[6]);
        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("Exception thrown: " + e.getMessage());
        }
        System.out.println("out of try block");
    }
}
